package com.xhs.main.service.scgl.impl;

import com.xhs.main.dao.rsgl.ScglRwhbDao;
import com.xhs.main.entity.scgl.ScglRwhb;
import com.xhs.main.service.scgl.ScglRwhbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScglRwhbServiceImpl implements ScglRwhbService {
   @Autowired
    ScglRwhbDao scglRwhbDao;

    @Override
    public void scgl_scglRwhb_insert(ScglRwhb scglRwhb) {
        scglRwhbDao.scgl_scglRwhb_insert(scglRwhb);
    }

    @Override
    public List<ScglRwhb> scgl_scglRwhb_selectAll() {
        return scglRwhbDao.scgl_scglRwhb_selectAll();
    }

    @Override
    public ScglRwhb scgl_scglRwhb_selectOne(String thisScglScjhDocumentnum) {
        return scglRwhbDao.scgl_scglRwhb_selectOne(thisScglScjhDocumentnum);
    }

    @Override
    public List<ScglRwhb> scgl_scglRwhb_selectAll_bylimit(Integer index, Integer pageNum) {
        Integer index01=(index-1)*pageNum;
        return scglRwhbDao.scgl_scglRwhb_selectAll_bylimit(index01,pageNum);
    }

    @Override
    public List<ScglRwhb> scgl_scglRwhb_LikeselectAll_bylimit(String thisscglScjhDocumentnum, String thisscglScjhPersonincharge, String thisscglScjhProject, Integer index, Integer pageNum) {
        Integer index01=(index-1)*pageNum;
        return scglRwhbDao.scgl_scglRwhb_LikeselectAll_bylimit(thisscglScjhDocumentnum,thisscglScjhPersonincharge,thisscglScjhProject,index01,pageNum);
    }

    @Override
    public List<ScglRwhb> scgl_scglRwhb_LikeselectAll(String thisscglScjhDocumentnum, String thisscglScjhPersonincharge, String thisscglScjhProject) {
        return scglRwhbDao.scgl_scglRwhb_LikeselectAll(thisscglScjhDocumentnum,thisscglScjhPersonincharge,thisscglScjhProject);
    }
}
